row = int (input('请输入行数:'))
for i_row in range(row):
    print(i_row,end='')
    print('*')
print() 
   
for i_row in range(row):    
    for _i_row in range(i_row +1):
         print('*',end = '')
    print()
print()
 
for i in range(row):
    for j in range(row):
        if j < row -i -1:
            print('',end ='')
        else:
            print ('=',end='')
print()

num = int(input('请输入一个数字'))
is_prime = True
for i in rangge(2,num):
    if num %i==0:
        is_prine = False
        break
    if is_prine== True:
        print('是素数')
    else:
        print('no shi 素数')
        row = int (input('请输入行数'))
        for i_row in range(row):
            for _i_row in range(i_row +1):
                print('*',end ='')
        print()
        print()
        fpr i in range(row):
            for j in range(row):
                if j<row -i -1:
                    print ('',end = '')
                else:
                    print('*',end = '')
                    print()
       